import { useRoutes } from "react-router-dom";
import { lazy } from "react";
import LazyLoad from "@/router/LazyLoad.jsx";

export const basicRouter = [
  {
    path: "/login",
    hidden: true,
    element: LazyLoad(lazy(() => import("@/pages/login"))),
  },
  {
    path: "/",
    hidden: true,
    element: LazyLoad(lazy(() => import("@/Layout"))),
    children: [],
  },
  {
    path: "*",
    hidden: true,
    element: LazyLoad(lazy(() => import("@/pages/error/404.jsx"))),
  },
];
const routers = () => {
  return useRoutes(basicRouter);
};
export default routers;
